package com.zhangtai.modules.entity.employee;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-08-11 20:13:30
 */
@Data
@TableName("tb_relation")
public class RelationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * id
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 员工编号
		 */
			@NotNull(message = "员工id不能为空")
			@ApiModelProperty(value="员工id",required = false)
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long oid;
			/**
		 * 亲属名字
		 */
			@ApiModelProperty(value="亲属名字",required = false)
			private String relativeName;
			/**
		 * 亲属身份证
		 */
			@ApiModelProperty(value="亲属身份证",required = false)
			private String relativeidCard;
			/**
		 * 亲属关系
		 */
			@ApiModelProperty(value="亲属关系",required = false)
			private String relationship;
			/**
		 * 亲属所在单位
		 */
			@ApiModelProperty(value="亲属所在单位",required = false)
			private String relativeUnit;
			/**
		 * 0:未删除，1：已删除
		 */
			private Integer isDelete;
	
}
